package com.huahua.api.entity.pojo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @author Huahua-Ai
 * @date 2025-07-24 17:40:00
 * @description 云打印设备实体
 */
@Data
@Accessors(chain = true)
@Table("cloud_print_device")
public class CloudPrintDevice {

    @Id
    private Long id;

    @Column("device_id")
    private String deviceId;

    @Column("device_name")
    private String deviceName;

    @Column("device_type")
    private String deviceType;

    @Column("status")
    private String status;

    @Column("ip_address")
    private String ipAddress;

    @Column("location")
    private String location;

    @Column("capabilities")
    private String capabilities; // JSON字符串

    @Column("device_info")
    private String deviceInfo; // JSON字符串

    @Column("default_printer")
    private String defaultPrinter;

    @Column("metadata")
    private String metadata; // JSON字符串

    @Column("last_heartbeat")
    private LocalDateTime lastHeartbeat;

    @Column("registered_at")
    private LocalDateTime registeredAt;

    @Column("updated_at")
    private LocalDateTime updatedAt;

    @Column("is_active")
    private Boolean isActive;
}
